package com.ls.task.support.schedule.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;

import com.ls.fw.data.annotation.FwColumn;

public class Task implements Serializable {

	 private String id;
    /**
     * 名称
     */
    @FwColumn(name = "name",remark = "名称")
    private String name;

    /**
     * 优先级
     */
    @FwColumn(name = "level",remark = "优先级")
    private Integer level;
    /**
     * 任务分组
     */
    @FwColumn(name = "group",remark = "任务分组")
    private String group;

    /**
     * 描述
     */
    @FwColumn(name = "description",remark = "描述")
    private String description;

    /**
     * 任务调用类在spring中注册的bean id
     */
    @Column(name = "spring_id")
    @FwColumn(name = "spring_id",remark = "任务调用类在spring中注册的bean id")
    private String springId;

    /**
     * 任务调用类名，包名+类名
     */
    @Column(name = "job_class")
    @FwColumn(name = "job_class",remark = "任务调用类名，包名+类名")
    private String jobClass;

    @Column(name = "method_name")
    @FwColumn(name = "method_name",remark = "")
    private String methodName;

    /**
     * 启动时间
     */
    @Column(name = "start_dt")
    @FwColumn(name = "start_dt",remark = "启动时间")
    private Date startDt;

    /**
     * 停止时间
     */
    @Column(name = "end_dt")
    @FwColumn(name = "end_dt",remark = "停止时间")
    private Date endDt;

    /**
     * 任务url
     */
    @FwColumn(name = "url",remark = "任务url")
    private String url;
 
    /**
     * 是否为链接
     */
    @Column(name = "url_class")
    @FwColumn(name = "url_class",remark = "是否为链接")
    private Boolean urlClass;
 
    /**
     * 是否同步
     */
    @FwColumn(name = "concurrent",remark = "是否同步")
    private Boolean concurrent;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSpringId() {
		return springId;
	}

	public void setSpringId(String springId) {
		this.springId = springId;
	}

	public String getJobClass() {
		return jobClass;
	}

	public void setJobClass(String jobClass) {
		this.jobClass = jobClass;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public Date getStartDt() {
		return startDt;
	}

	public void setStartDt(Date startDt) {
		this.startDt = startDt;
	}

	public Date getEndDt() {
		return endDt;
	}

	public void setEndDt(Date endDt) {
		this.endDt = endDt;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Boolean getUrlClass() {
		return urlClass;
	}

	public void setUrlClass(Boolean urlClass) {
		this.urlClass = urlClass;
	}

	public Boolean getConcurrent() {
		return concurrent;
	}

	public void setConcurrent(Boolean concurrent) {
		this.concurrent = concurrent;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
 
}